// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_SALES_RL_SO_APP
// * CreateDate    : 2014-04-28 14:51:05
// * Creater       : CodeSmith
// * LastChangeDate: 2014-04-28 14:51:05
// * LastChanger   : 2014-04-28 14:51:05
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Suzsoft.Smart.Data;
using ESOL.Common.Entity;

namespace ESOL.Business.Sales
{
/// <summary>
    /// SalesRlSoApp
    /// </summary>
    public partial class SalesRlSoAppBs
    {
        #region GetByID
        /// <summary>
        /// Get Entity
        /// </summary>
        /// <param name="objSalesRlSoAppEntity">Entity</param>
        /// <returns>Entity</returns>
        public static SalesRlSoAppEntity GetSalesRlSoApp(SalesRlSoAppEntity objSalesRlSoAppEntity)
        {
            return DataAccess.SelectSingle<SalesRlSoAppEntity>(objSalesRlSoAppEntity);
        }
        #endregion


        #region Insert
        /// <summary>
        /// Insert Data
        /// </summary>
        /// <param name="objSalesRlSoAppEntity">Entity</param>
        /// <returns>true Insert Succeed; false Insert Fail</returns>
        public static bool InsertSalesRlSoApp(SalesRlSoAppEntity objSalesRlSoAppEntity)
        {
            return DataAccess.Insert(objSalesRlSoAppEntity);
        }

        public static bool InsertSalesRlSoApp(List<SalesRlSoAppEntity> objSalesRlSoAppEntityList)
        {
            return DataAccess.Insert(objSalesRlSoAppEntityList);
        }
        #endregion


        #region Update
        /// <summary>
        /// Update Data
        /// </summary>
        /// <param name="objSalesRlSoAppEntity">Entity</param>
        /// <returns>true Update Succeed; false Update Fail</returns>
        public static bool UpdateSalesRlSoApp(SalesRlSoAppEntity objSalesRlSoAppEntity)
        {
            return DataAccess.Update(objSalesRlSoAppEntity);
        }

        public static bool UpdateSalesRlSoApp(List<SalesRlSoAppEntity> objSalesRlSoAppEntityList)
        {
            return DataAccess.Update<SalesRlSoAppEntity>(objSalesRlSoAppEntityList);
        }
        #endregion


        #region Delete
        /// <summary>
        /// Delete Data
        /// </summary>
        /// <param name="objSalesRlSoAppEntity">Entity</param>
        /// <returns>true Delete Succeed; false Delete Fail</returns>
        public static bool DeleteSalesRlSoApp(SalesRlSoAppEntity objSalesRlSoAppEntity)
        {
            return DataAccess.Delete(objSalesRlSoAppEntity);
        }

        public static bool DeleteSalesRlSoApp(List<SalesRlSoAppEntity> objSalesRlSoAppEntityList)
        {
            return DataAccess.Delete<SalesRlSoAppEntity>(objSalesRlSoAppEntityList);
        }
        #endregion


        #region GetAll
        /// <summary>
        /// Get All Data
        /// </summary>
        /// <returns>Back All Data<returns>
        public static DataSet GetSalesRlSoAppAll()
        {
            return DataAccess.SelectAllDataSet<SalesRlSoAppEntity>();
        }
        /// <summary>
        /// Get All Data List
        /// </summary>
        /// <returns>Back All Data List<returns>
        public static List<SalesRlSoAppEntity> GetSalesRlSoAppAllList()
        {
            return DataAccess.SelectAll<SalesRlSoAppEntity>();
        }
        #endregion
	}
	
	
}	

